POV-Ray : Newsgroups : povray.advanced-users : Help needed! Forest memory problems : Re: Help needed! Forest memory problems - I give up! Server Time
29 Jul 2024 10:19:43 EDT (-0400)
  Re: Help needed! Forest memory problems - I give up!  
From: Tek
Date: 20 Dec 2002 06:39:16
Message: <3e030164$1@news.povray.org>
Hmm... my code doesn't quite look like that. I do this:

#declare Mesh = #include "mesh.inc"

#declare Forest =
    union {
        #local nTree = 0;
        #while (nTree < 8000)
            object { Mesh transform { ... } }

            #local nTree = nTree + 1;
        #end
    }

The union couldn't cause problems could it?

BTW, the file definitely has only one mesh in.

--
Tek
http://www.evilsuperbrain.com


"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3E02E100.EC7FEB26@gmx.de...
>
>
> Tek wrote:
> >
> > Yep, I tried that too. It took most of last evening to rewrite the
> > transformation code, but once I had it still had all the same problems
as
> > when it had been 1 mesh per leaf. My foliage include is just a 5 meg
mesh.
> >
>
> If your code looks like:
>
> #declare Mesh= mesh { ... }
>
> object { Mesh ... }
> object { Mesh ... }
> ...
>
> this should work.
>
> If you have the mesh written to a file you should make sure it really
> contains a single mesh.
>
> Christoph
>
> --
> POV-Ray tutorials, include files, Sim-POV,
> HCR-Edit and more: http://www.tu-bs.de/~y0013390/
> Last updated 07 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.